package com.tc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author jcd
 * @since 2025-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("patient_drug_order")
public class Patient_drug_order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    /**
     * 患者ID（关联insured_person）
     */
    @ApiModelProperty(value = "患者ID（关联insured_person）")
    @TableField("patient_id")
    private Long patientId;

    /**
     * 药品ID（关联drug_info）
     */
    @ApiModelProperty(value = "药品ID（关联drug_info）")
    @TableField("drug_id")
    private Long drugId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    @TableField("quantity")
    private Integer quantity;

    /**
     * 开具时间
     */
    @ApiModelProperty(value = "开具时间")
    @TableField("order_time")
    private LocalDateTime orderTime;

    /**
     * 医生ID
     */
    @ApiModelProperty(value = "医生ID")
    @TableField("doctor_id")
    private Long doctorId;
    
    /**
     * 逻辑删除标志（0-未删除，1-已删除）
     */
    @ApiModelProperty(value = "逻辑删除标志（0-未删除，1-已删除）")
    @TableLogic
    @TableField("deleted")
    private Integer deleted;
}
